<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
    <title>Celibax admin2</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Language" content="fr" />
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- LIB INCLUDES -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/jquery.min1.7.2.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/extendAjaxForCSRF.js"></script>
    <!-- the following include allow internet explorer to keep the same display than the other browser -->
    <!--[if lt IE 10]>
	    <script type="text/javascript" src="{{ STATIC_URL}}javascript/CSS3PIE.js"></script>
    <![endif]-->


    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- STYLE AND PAGE STRUCTURE INCLUDES -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL}}css/structure.css">
    <script language="JavaScript" type="text/javascript" src="{{ STATIC_URL}}javascript/headerStructure.js"></script>
    
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- Functional includes-->
    <!-- -------------------------------------------------------------------------------------------- -->
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/submitUtils.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/saveAndCreateRoom.js"></script>
    
 
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <!-- INITIALISATION OF THE PAGE -->
    <!-- -------------------------------------------------------------------------------------------- -->
    <script type="text/javascript" src="{{ STATIC_URL}}javascript/coreOnLoad.js"></script>
  
</head>

<body>

     {% load argTemplates %}
     
     <!-- create the header-->
    <script language="JavaScript" type="text/javascript">makeHeader(
        'adminMkt',
        5,
        '{{userName}}',
        '{{betroom.name}}',
        {{betroom.roomType}},//room type
        {{betroom.status}},
        '{{STATIC_URL}}'
     );</script>
    <noscript> <p> Activez Javascript pour voir le menu !</p></noscript>

    <div class="section">  <h1>Add a player</h1> </div>

    <div class="section">  
        <!-- Pay dividend -->
        <h2>Create new player at market with average MtM</h2>
        <div align="left">
            Pressing this button creates a new player with Mkt view (so that the other player MtM will not change
            the Player will be fully invested in his main strategy and the number of action associated to it
            will be such that the MtM of the player will be the average og the other player's MtMs
            <div id="id_addPlayer">
                New Player name: 
                <input type="text" id="id_newPlayerName" name="newPlayerName" onkeypress="ifEnter(this, event, addANewPlayer);" />
                (No space)<br />
                <input type="hidden" name="betroom" value="{{betroom.name}}"</input>
                <input type="submit" class="myRoundCorners" onclick="addANewPlayer()"  value="create new player" />
                <div style="color:Red;" id="id_messageDiv"></div>
            </div>
         </div>
    </div>
    
    <div>
        <script language="JavaScript" type="text/javascript">footer()</script>
    </div>
        
</body>
</html>
